//
//  OosAuthentificationHandler.h
//  oos4ios
//
//  Created by Pablo Gonzalez on 3/7/11.
//  Copyright 2011 11870.com. All rights reserved.
//

#import <Foundation/Foundation.h>

/**
 This protocol determines what the API expects of an authetication handler needs
 to do to sign requests for the atom communication.
 It also provides with a method to determine if the handler signs using secure 
 credentials for the signing.
 */
@protocol IOosAuthenticationHandler <NSObject>

- (BOOL) isAnonymous;

- (BOOL) authorizeRequest: (NSMutableURLRequest *) request;

@optional

- (BOOL) save;

- (BOOL) remove;

+ (id<IOosAuthenticationHandler>) restore;

@end
